# _*_ encoding:utf-8 _*_

from django.urls import path, re_path

from . import views

urlpatterns = [

    # 分页列表接口
    path('list/<int:category_id>/skus/', views.ListView.as_view()),

    # 获取热销排行接口
    re_path(r'^hot/(?P<category_id>\d+)/$', views.HotGoodsView.as_view()),

    # 搜索路由--千万注意: 没有as_view()
    path('search/', views.MySearchView()),
]
